const fs = require('fs');
const path = require('path');

const gitHookPath = path.join(__dirname, '../../.git/hooks');

fs.rename(path.resolve(gitHookPath, 'pre-commit'), path.resolve(gitHookPath, 'pre-commit.bak'), (err) => {
    if (err) {
        throw err
    };
    console.log('pre-commit已移除！');
});